From: Jasper St. Pierre Date: Thu, 16 Aug 2012 17:53:07 +0000 (-0400) Subject: messageTray: Close the current box pointer when clicking on the tray X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6128 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=95b9863a70bc4dd6838821dcb6588083c6d3b00a;p=gnome-shell.git messageTray: Close the current box pointer when clicking on the tray --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 8b5286b00..fde083385 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1321,7 +1321,13 @@ const MessageTray = new Lang.Class({ this._notification = null; this._notificationClickedId = 0; - this._summaryBin = new St.Bin({ x_align: St.Align.END }); + this._summaryBin = new St.Bin({ x_align: St.Align.END, + reactive: true }); + this._summaryBin.connect('button-release-event', Lang.bind(this, function(actor, event) { + this._setClickedSummaryItem(null); + this._updateState(); + actor.grab_key_focus(); + })); this.actor.add_actor(this._summaryBin); this._summary = new St.BoxLayout({ name: 'summary-mode', reactive: true,